package cn.zcib.tms.dao;

import cn.zcib.tms.model.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {

    void addOrder(Orders orders);

    List<Orders> findAllOrderByUid(Integer uid);

    /**
     * 通过预订状态查询订单
     * @param flag
     * @return
     */
    List<Orders> findOrdersByFlag(Integer flag);

    /**
     * 验证订单状态
     * @param flag
     */
    void checkedOrder(@Param("o_id") Integer o_id, @Param("flag") int flag);
}